.class public Lcom/teewoo/app/bus/ui/HomeMyselfTab;
.super Ljava/lang/Object;
.source "HomeMyselfTab.java"

# interfaces
.implements Landroid/widget/TabHost$TabContentFactory;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/teewoo/app/bus/ui/HomeMyselfTab$MenuAdapter;
    }
.end annotation


# instance fields
.field private context:Landroid/content/Context;

.field factory:Landroid/view/LayoutInflater;

.field private menuListView:Landroid/widget/ListView;

.field private menus:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private position:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2
    .parameter "context"

    .prologue
    .line 38
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 36
    const/4 v0, 0x0

    iput v0, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->position:I

    .line 37
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->menus:Ljava/util/List;

    .line 39
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->context:Landroid/content/Context;

    .line 40
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->factory:Landroid/view/LayoutInflater;

    .line 41
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->menus:Ljava/util/List;

    const-string v1, "\u6211\u7684\u57ce\u5e02"

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 42
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->menus:Ljava/util/List;

    const-string v1, "\u6211\u7684\u6536\u85cf"

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 43
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->menus:Ljava/util/List;

    const-string v1, "\u6211\u7684\u7248\u672c"

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 44
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->menus:Ljava/util/List;

    const-string v1, "\u544a\u8bc9\u597d\u53cb"

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 45
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->menus:Ljava/util/List;

    const-string v1, "\u7f51\u5740\u5bfc\u822a"

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 46
    return-void
.end method

.method static synthetic access$0(Lcom/teewoo/app/bus/ui/HomeMyselfTab;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 37
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->menus:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$1(Lcom/teewoo/app/bus/ui/HomeMyselfTab;)V
    .locals 0
    .parameter

    .prologue
    .line 96
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->showCityConfirmDialog()V

    return-void
.end method

.method static synthetic access$2(Lcom/teewoo/app/bus/ui/HomeMyselfTab;)Landroid/content/Context;
    .locals 1
    .parameter

    .prologue
    .line 34
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$3(Lcom/teewoo/app/bus/ui/HomeMyselfTab;)V
    .locals 0
    .parameter

    .prologue
    .line 86
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->showVersionDialog()V

    return-void
.end method

.method static synthetic access$4(Lcom/teewoo/app/bus/ui/HomeMyselfTab;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 36
    iput p1, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->position:I

    return-void
.end method

.method private showCityConfirmDialog()V
    .locals 5

    .prologue
    .line 98
    new-instance v0, Landroid/app/AlertDialog$Builder;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->context:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 100
    .local v0, builder:Landroid/app/AlertDialog$Builder;
    const v1, 0x7f02005d

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    const v2, 0x7f080059

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 101
    const v2, 0x7f060001

    iget v3, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->position:I

    new-instance v4, Lcom/teewoo/app/bus/ui/HomeMyselfTab$2;

    invoke-direct {v4, p0}, Lcom/teewoo/app/bus/ui/HomeMyselfTab$2;-><init>(Lcom/teewoo/app/bus/ui/HomeMyselfTab;)V

    invoke-virtual {v1, v2, v3, v4}, Landroid/app/AlertDialog$Builder;->setSingleChoiceItems(IILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 118
    const v2, 0x7f08004f

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v1

    invoke-virtual {v1}, Landroid/app/AlertDialog;->show()V

    .line 120
    return-void
.end method

.method private showVersionDialog()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 87
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->factory:Landroid/view/LayoutInflater;

    const v3, 0x7f03002f

    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 88
    .local v1, view:Landroid/view/View;
    new-instance v0, Landroid/app/AlertDialog$Builder;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->context:Landroid/content/Context;

    invoke-direct {v0, v2}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 89
    .local v0, builder:Landroid/app/AlertDialog$Builder;
    const v2, 0x7f02005d

    invoke-virtual {v0, v2}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v2

    const v3, 0x7f08005a

    invoke-virtual {v2, v3}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v2

    .line 90
    invoke-virtual {v2, v1}, Landroid/app/AlertDialog$Builder;->setView(Landroid/view/View;)Landroid/app/AlertDialog$Builder;

    move-result-object v2

    const v3, 0x7f08004e

    invoke-virtual {v2, v3, v4}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v2

    .line 91
    invoke-virtual {v2}, Landroid/app/AlertDialog;->show()V

    .line 92
    return-void
.end method


# virtual methods
.method public createTabContent(Ljava/lang/String;)Landroid/view/View;
    .locals 4
    .parameter "tag"

    .prologue
    .line 50
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->factory:Landroid/view/LayoutInflater;

    const v2, 0x7f03000a

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 51
    .local v0, view:Landroid/view/View;
    const v1, 0x7f0a0027

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ListView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->menuListView:Landroid/widget/ListView;

    .line 52
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->menuListView:Landroid/widget/ListView;

    new-instance v2, Lcom/teewoo/app/bus/ui/HomeMyselfTab$MenuAdapter;

    invoke-direct {v2, p0}, Lcom/teewoo/app/bus/ui/HomeMyselfTab$MenuAdapter;-><init>(Lcom/teewoo/app/bus/ui/HomeMyselfTab;)V

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 53
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->menuListView:Landroid/widget/ListView;

    new-instance v2, Lcom/teewoo/app/bus/ui/HomeMyselfTab$1;

    invoke-direct {v2, p0}, Lcom/teewoo/app/bus/ui/HomeMyselfTab$1;-><init>(Lcom/teewoo/app/bus/ui/HomeMyselfTab;)V

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 81
    return-object v0
.end method
